<?
	global $kam_admin, $FullUrl, $arr_table, $table_edit, $config_xml_edit, $element, $column, $name_column_view, $lg, $note_text, $value_default;
?>
<?
	
    $cid_url = isset($_GET['cid'])?'&cid='.$_GET['cid']:'';
    $page_url = isset($_GET['page'])?'&page='.$_GET['page']:'';
    $trans_form = ($act=='add_full_output')?'addsm_full':(($act=='edit_full_output')?'editsm_full':'');
    $trans_url = 'admin-pro.html?do='.$table_edit.'&act='.$trans_form.$cid_url.$page_url;

?>
<!-- Alternative Content Box End -->

<div class="contentcontainer med left">
  <div class="headings alt">
    <h2>Chỉnh sửa ketoan</h2>
  </div>
  <div class="contentbox">
    <form action="<?=$trans_url?>" method="post" enctype="multipart/form-data" id="frmEdit" name="frmEdit">
    	
	<?
    	$column = 'date_input';
		$name_column_view = 'Ngày nhập sổ';
		$note_text = "dd-mm-yyyy (31-12-2012)";
		$value_default = date("d-m-Y"); 
		Template::UserControlAD('Date');
		
		$column = 'ma_chi';
		$name_column_view = 'Mã tiền chi';
        Template::UserControlAD('TextBox');
		
		$column = 'money_output';
		$name_column_view = 'Tiền ra';
		Template::UserControlAD('TextBox');	
		
		$column = 'diengiai';
		$name_column_view = 'Diễn giải chi tiết';
		Template::UserControlAD('TextBox');	
		
		$column = 'taikhoan_doiung';
		$name_column_view = 'Tài khoản đối ứng';
		Template::UserControlAD('TextBox');
		
		$column = 'nguoithuchien';
		$name_column_view = 'Người thực hiện';
		Template::UserControlAD('TextBox');
		
		//$column = 'active';
		//$name_column_view = 'Hiển Thị';
        //Template::UserControlAD('CheckBox');    
                
    ?>
     
      <p><br />
        <br />
        Lưu lại</p>
        
        <?
        	//Template::UserControlAD('SEO-TextBox');
        ?>
      <input type="hidden" name="id" value="<?=isset($_GET['id'])?$_GET['id']:''?>"/>
      <input type="submit" value="submit" class="btn" />
      <input type="submit" value="Submit (Alternative)" class="btnalt" />
     
      
    </form>
  </div>
</div>

<script>
	function TreeFilterChanged(value){
		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Browser does not support HTTP Request");
		  return;
		  }
		var url="ajax/checkComp.php";
		url=url+"?id="+value;
		url=url+"&sid="+Math.random();
		url=url+"&comp=2";
		xmlHttp.onreadystatechange=ReadyTreeFilterChanged1 ;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
</script>
